import request from '@/utils/request'

// 查询搜索结果日志列表
export function listSearchlog(query) {
  return request({
    url: '/searchlog/searchlog/list',
    method: 'get',
    params: query
  })
}

// 查询搜索结果日志详细
export function getSearchlog(logId) {
  return request({
    url: '/searchlog/searchlog/' + logId,
    method: 'get'
  })
}

// 新增搜索结果日志
export function addSearchlog(data) {
  return request({
    url: '/searchlog/searchlog',
    method: 'post',
    data: data
  })
}

// 修改搜索结果日志
export function updateSearchlog(data) {
  return request({
    url: '/searchlog/searchlog',
    method: 'put',
    data: data
  })
}

// 删除搜索结果日志
export function delSearchlog(logId) {
  return request({
    url: '/searchlog/searchlog/' + logId,
    method: 'delete'
  })
}
